package com.bei_en.teacher.admin.model.users.condition;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import com.bei_en.teacher.admin.model.BaseCondition;

public class MyCarNumCondition extends BaseCondition {

	@NotEmpty(message = "phoneNum不能为空")
	 @Pattern(regexp = "^[1][34578][0-9]{9}$", message = "phoneNum格式错误")
	private String phoneNum;
	@NotBlank(message = "类型不能为空")
	private String type = "phone";
	private boolean debug = false;
	public boolean isDebug() {

		return debug;
	}

	public void setDebug(boolean debug) {

		this.debug = debug;
	}

	public String getPhoneNum() {// 自动加桂

		return phoneNum;
	}

	public void setPhoneNum(String phoneNum) {

		this.phoneNum = phoneNum;

	}

	public String getType() {

		return type;
	}

	public void setType(String type) {

		this.type = type;
	}
}
